package models

import "time"

type RelAccountWechat struct {
	ID         int64     `gorm:"column:id" json:"id"`
	AccountId  int64     `gorm:"column:account_id" json:"account_id"`
	Openid     string    `gorm:"column:openid" json:"openid"`
	Sex        int64     `gorm:"column:sex" json:"sex"`
	Unionid    string    `gorm:"column:unionid" json:"unionid"`
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	Headimgurl string    `gorm:"column:headimgurl" json:"headimgurl"`
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	Nickname   string    `gorm:"column:nickname" json:"nickname"`
}

func (this *RelAccountWechat) GetList(where map[string]interface{}) (RelAccountWechats []RelAccountWechat) {
	db := Db
	db.Where(where).Find(&RelAccountWechats)
	return
}
